package top.zhangjianyong.tools.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.zhangjianyong.tools.entity.guanjiangyuan.People;
import top.zhangjianyong.tools.mapper.PeopleMapper;
import top.zhangjianyong.tools.service.mybatis.IPeopleService;
import top.zhangjianyong.tools.service.mybatis.IPoetService;

import java.util.List;

/**
 * @author ： zhangjianyong
 * @date ： 2023/7/5 11:49 AM
 */
@Service
public class IPeopleServiceImpl extends ServiceImpl<PeopleMapper, People> implements IPeopleService {

    @Override
    public List<People> peopleList(String houseNo) {
        return lambdaQuery().eq(People::getHouseNo, houseNo)
                .orderByDesc(People::getUpdateTime)
                .list();
    }
}
